import { createSSRApp } from "vue";
import App from "./App.vue";

// 导入 pinia 实例
import pinia from "./stores";

import uviewPlus from "uview-plus";

// custom directives
import directives from "@/directives/index";
export function createApp() {
  // 创建 vue 实例
  const app = createSSRApp(App);

  // 使用 pinia
  app.use(pinia).use(uviewPlus).use(directives);

  return {
    app
  };
}
